import request from '@/utils/request'

// 客户分类-分页列表
export function classifyPageList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerClassify/pageList',
    method: 'get',
    params: query
  })
}
// 客户分类-新增
export function customerClassifyAdd(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerClassify/add',
    method: 'post',
    data: query
  })
}
// 客户分类-编辑
export function classifyUpdateById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerClassify/updateById',
    method: 'post',
    data: query
  })
}
// 客户分类-删除
export function classifyDeleteById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerClassify/deleteById',
    method: 'get',
    params: query
  })
}
// 客户分类-禁用
export function classifyDisable(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerClassify/disable',
    method: 'get',
    params: query
  })
}
// 客户分类-启用
export function classifyEnable(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerClassify/enable',
    method: 'get',
    params: query
  })
}

// 合作状态-分页列表
export function cooperationPageList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerCooperation/pageList',
    method: 'get',
    params: query
  })
}
// 合作状态-新增
export function cooperationAdd(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerCooperation/add',
    method: 'post',
    data: query
  })
}
// 合作状态-编辑
export function cooperationUpdateById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerCooperation/updateById',
    method: 'post',
    data: query
  })
}
// 合作状态-删除
export function cooperationDeleteById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerCooperation/deleteById',
    method: 'get',
    params: query
  })
}
// 合作状态-启用
export function cooperationEnable(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerCooperation/enable',
    method: 'get',
    params: query
  })
}
// 合作状态-合作状态-禁用
export function cooperationDisable(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerCooperation/disable',
    method: 'get',
    params: query
  })
}

// 客户类型-分页列表
export function typePageList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerType/pageList',
    method: 'get',
    params: query
  })
}
// 客户类型-新增
export function typeAdd(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerType/add',
    method: 'post',
    data: query
  })
}
// 客户类型-编辑
export function typeUpdateById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerType/updateById',
    method: 'post',
    data: query
  })
}
// 客户类型-删除
export function typeDeleteById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerType/deleteById',
    method: 'get',
    params: query
  })
}
// 客户类型-启用
export function typeEnable(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerType/enable',
    method: 'get',
    params: query
  })
}
// 客户类型-禁用
export function typeDisable(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerType/disable',
    method: 'get',
    params: query
  })
}

// 签到管理-分页列表
export function signInPageList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerVisitSignIn/pageList',
    method: 'get',
    params: query
  })
}
// 签到管理-删除
export function signInDeleteById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerVisitSignIn/deleteById',
    method: 'get',
    params: query
  })
}

// 客户分类-下拉列表--新增客户使用
export function customerClassifyList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerClassify/list',
    method: 'get',
    params: query
  })
}
// 客户类型-下拉列表--新增客户使用
export function customerTypeList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerType/list',
    method: 'get',
    params: query
  })
}
// 合作状态-下拉列表--新增客户使用
export function customerCooperationList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerCooperation/list',
    method: 'get',
    params: query
  })
}
// 客户管理-分页列表
export function customerPageList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customer/pageList',
    method: 'get',
    params: query
  })
}
// 客户管理-新增
export function customerAdd(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customer/add',
    method: 'post',
    data: query
  })
}
// 客户管理-删除
export function customerDeleteById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customer/deleteById',
    method: 'get',
    params: query
  })
}
// 客户管理-查看详情
export function customerGetById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customer/getById',
    method: 'get',
    params: query
  })
}
// 客户管理-编辑
export function customerUpdateById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customer/updateById',
    method: 'post',
    data: query
  })
}
// 客户管理-检索存在的客户列表
export function listByCustomerName(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customer/listByCustomerName',
    method: 'get',
    params: query
  })
}
// 客户管理-备注
export function customerDescription(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customer/description',
    method: 'get',
    params: query
  })
}
// 客户管理-分配客户-员工列表选择
export function customerGetUsers(query) {
  return request({
    url: '/jbl-user-center/api/admin/v1/sysUser/getUsers',
    method: 'get',
    params: query
  })
}
// 客户管理-分配客户
export function customerBatchAdd(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerRelation/batchAdd',
    method: 'post',
    data: query
  })
}
// 客户管理-解除分配客户
export function deleteBatchByCustomerIds(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerRelation/deleteBatchByCustomerIds',
    method: 'get',
    params: query
  })
}
// 客户拜访记录-分页列表
export function visitPageList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerVisitRecord/pageList',
    method: 'get',
    params: query
  })
}
// 客户拜访记录-新增
export function visitAdd(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerVisitRecord/add',
    method: 'post',
    data: query
  })
}
// 客户拜访记录-查看详情
export function visitGetById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerVisitRecord/getById',
    method: 'get',
    params: query
  })
}
// 客户管理-编辑
export function visitUpdateById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerVisitRecord/updateById',
    method: 'post',
    data: query
  })
}
// 客户拜访记录-删除
export function visitDeleteById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/customerVisitRecord/deleteById',
    method: 'get',
    params: query
  })
}
